package edu.ynu.se.xiecheng.achitectureclass.service;

import edu.ynu.se.xiecheng.achitectureclass.dto.DeviceDataWithGreenhouseDTO;
import edu.ynu.se.xiecheng.achitectureclass.entity.DeviceDataBase;

import java.util.List;

public interface IDeviceDataService {
    List<DeviceDataWithGreenhouseDTO> getAllSensorsData(Long greenhouseId);
    <T extends DeviceDataBase> T saveSensorData(T sensorData);
    Boolean refreshData(Long greenhouseId);
}